Skip to content

feat: 2s blocktime - #1435

Open
cl0w5 wants to merge 39 commits into
masterfrom
2s
Open

feat: 2s blocktime#1435
cl0w5 wants to merge 39 commits into
masterfrom
2s

Conversation

@cl0w5

@cl0w5 cl0w5 commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

Checklist

  • runtime (general)
  • tests
  • node
  • frontier
  • system
  • scheduler
  • OpenGov + migration
  • pallet-circuit-breaker
  • deposit limits
  • pallet-dca + migration
  • pallet-dynamic-fees?
  • pallet-ema-oracle
  • pallet-liquidity-mining?
  • pallet-stableswap?
  • pallet-staking + migration
  • weights
  • script for removing votes by TC

Migrations

The migrations below should fit in a single block. They all contain hard limits making sure that they cannot exceed the current count on mainnet by more than 30%

  • pallet_staking::migrations::SetTwoSecBlocksSince
  • pallet_gigahdx::migrations::SetTwoSecBlocksSince
  • pallet_dca::migrations::MultiplySchedulesPeriodBy3
  • hydradx_runtime::migrations::circuit_breaker
  • hydradx_runtime::migrations::stableswap
  • hydradx_runtime::migrations::scheduler
  • hydradx_runtime::migrations::referenda
  • hydradx_runtime::migrations::conviction_voting

Try runtime

[2026-07-31T10:58:01Z INFO  pallet_staking::migrations] TwoSecBlocksSince set to: 13397465
[2026-07-31T10:58:01Z INFO  pallet_gigahdx::migrations] GigaHdx TwoSecBlocksSince set to: 13397465
[2026-07-31T10:58:01Z INFO  pallet_dca::migrations] MultiplySchedulesPeriodBy3 found schedules: 38, processing cap: 150
[2026-07-31T10:58:01Z INFO  pallet_dca::migrations] MultiplySchedulesPeriodBy3 processed schedules: 39
[2026-07-31T10:58:01Z INFO  hydradx_runtime::migrations::circuit_breaker] MigrateCircuitBreakerLimitsTo2sBlocks found entries - trade: 0, add liquidity: 3, remove liquidity: 0, cap per map: 10
[2026-07-31T10:58:01Z INFO  hydradx_runtime::migrations::circuit_breaker] MigrateCircuitBreakerLimitsTo2sBlocks migrated trade: 0, add liquidity: 3, remove liquidity: 0
[2026-07-31T10:58:01Z INFO  hydradx_runtime::migrations::stableswap] MigrateStableswapMaxPegUpdateTo2sBlocks found PoolPegs entries: 8, cap: 15
[2026-07-31T10:58:01Z INFO  hydradx_runtime::migrations::stableswap] MigrateStableswapMaxPegUpdateTo2sBlocks checked pools: 8, migrated: 8
[2026-07-31T10:58:01Z INFO  hydradx_runtime::migrations::scheduler] MigrateSchedulerTo2sBlocks found Agenda entries: 470, Agenda cap: 750, Lookup entries: 0, Lookup cap: 5
[2026-07-31T10:58:01Z INFO  hydradx_runtime::migrations::scheduler] MigrateSchedulerTo2sBlocks processed agenda items: 470, lookup entries: 0, lookup migrated: true
[2026-07-31T10:58:01Z INFO  hydradx_runtime::migrations::referenda] MigrateReferendaTo2sBlocks found ReferendumInfoFor records: 378, ongoing: 2, ongoing cap: 30
[2026-07-31T10:58:01Z INFO  hydradx_runtime::migrations::referenda] MigrateReferendaTo2sBlocks checked referenda records: 378, ongoing: 2, migrated ongoing: 2
[2026-07-31T10:58:01Z INFO  hydradx_runtime::migrations::conviction_voting] MigrateConvictionVotingTo2sBlocks found VotingFor records: 8964, cap: 10000
[2026-07-31T10:58:01Z INFO  hydradx_runtime::migrations::conviction_voting] MigrateConvictionVotingTo2sBlocks migrated prior locks: 1176

[2026-07-31T10:58:03Z INFO  try-runtime::cli] PoV size (zstd-compressed compact proof): 187.4 KB. For parachains, it's your responsibility to verify that a PoV of this size fits within any relaychain constraints.
[2026-07-31T10:58:03Z INFO  try-runtime::cli] Consumed ref_time: 0.6911615s (46.08% of max 1.5s)
[2026-07-31T10:58:03Z INFO  try-runtime::cli] ✅ No weight safety issues detected. Please note this does not guarantee a successful runtime upgrade. Always test your runtime upgrade with recent state, and ensure that the weight usage of your migrations will not drastically differ between testing and actual on-chain execution.

@github-actions

github-actions Bot commented Apr 30, 2026

Copy link
Copy Markdown

Crate versions that have been updated:

  • hydra-dx-math: v13.2.2 -> v13.2.3
  • hydradx: v15.1.6 -> v15.1.7
  • pallet-dca: v1.18.2 -> v1.19.0
  • pallet-ema-oracle: v1.12.0 -> v1.13.0
  • pallet-gigahdx: v1.2.0 -> v1.3.0
  • pallet-lbp: v4.13.0 -> v4.14.0
  • pallet-staking: v5.1.0 -> v5.2.0
  • primitives: v6.4.0 -> v6.4.1
  • hydradx-runtime: v434.0.0 -> v435.0.0
  • hydradx-traits: v4.11.0 -> v4.12.0

Runtime version has been increased.

@cl0w5
cl0w5 marked this pull request as ready for review July 31, 2026 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant